package com.green.cosme.batch.scraper;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Item {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Persistent
	private String categoryCode;
	@Persistent
	private String seibunCode;
	@Persistent
	private String name;
	@Persistent
	private String brand;
	@Persistent
	private String maker;
	@Persistent
	private Integer price;
	@Persistent
	private Integer kComPrice;
	@Persistent
	private String amount;
	@Persistent
	private String janCode;
	@Persistent
	private Date createDate;
	@Persistent
	private Date updateDate;

	public Item(String categoryCode, String seibunCode, String name, String brand, String maker, Integer price, Integer kComPrice, String amount, String janCode) {
		super();
		this.categoryCode = categoryCode;
		this.seibunCode = seibunCode;
		this.name = name;
		this.brand = brand;
		this.maker = maker;
		this.price = price;
		this.kComPrice = kComPrice;
		this.amount = amount;
		this.janCode = janCode;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCategoryCode() {
		return categoryCode;
	}

	public void setCategoryCode(String categoryCode) {
		this.categoryCode = categoryCode;
	}

	public String getSeibunCode() {
		return seibunCode;
	}

	public void setSeibunCode(String seibunCode) {
		this.seibunCode = seibunCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getMaker() {
		return maker;
	}

	public void setMaker(String maker) {
		this.maker = maker;
	}

	public Integer getPrice() {
		return price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

	public Integer getkComPrice() {
		return kComPrice;
	}

	public void setkComPrice(Integer kComPrice) {
		this.kComPrice = kComPrice;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getJanCode() {
		return janCode;
	}

	public void setJanCode(String janCode) {
		this.janCode = janCode;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	@Override
	public String toString() {
		return "Item [categoryCode=" + categoryCode + ", seibunCode=" + seibunCode + ", name=" + name + ", brand=" + brand + ", maker=" + maker + ", price=" + price + ", amount=" + amount + ", janCode=" + janCode + "]";
	}

}
